<?php
    //set framework root
    define('ROOT_PATH', dirname(dirname(__FILE__)));
    define('FRAMEWORK_PATH',ROOT_PATH . DIRECTORY_SEPARATOR . 'framework');
    define('PROTECTED_PATH', ROOT_PATH . DIRECTORY_SEPARATOR . 'protected');
    define('CONTROLLER_PATH', PROTECTED_PATH . DIRECTORY_SEPARATOR . 'controller');
    define('MODEL_PATH', PROTECTED_PATH . DIRECTORY_SEPARATOR . 'model');
    define('VIEW_PATH', PROTECTED_PATH . DIRECTORY_SEPARATOR . 'view');
    $config = include PROTECTED_PATH . DIRECTORY_SEPARATOR . 'config/main.php';//setting file
    include FRAMEWORK_PATH . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'Kunx.php';//include framework core file
    Kunx::run($config);
?>